﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OnlineTestBLL;
using OnlineTestModel;

namespace OnlineTestUI.BackManager
{
    public partial class editpaper : System.Web.UI.Page
    {
        protected QuestionItemsBLL qib = new QuestionItemsBLL();
        protected List<PaperQuestionEx> pqeList;
        
        protected void Page_Load(object sender, EventArgs e)
        {

            if (!IsPostBack)
            {
                if (Request.QueryString["id"] != null)
                {
                    int id = Convert.ToInt32(Request.QueryString["id"]);
                    BindToData(id);
                }
            }
        }

        private void BindToData(int id)
        {
            PapersBLL pb = new PapersBLL();
            Papers p = pb.GetModel(id);
            QuestionsBLL qb = new QuestionsBLL();
            pqeList = qb.GetListByPaperId(" =" + id.ToString() + " order by bigquestion,smallquestion,id");
            
        }

        

        
    }
}